

package AddressBook.Model.Exception;

/**
 * Thrown when an application attempts to add an object to an hashmap with an already used key
 */
public class KeyAlreadyUsedHashMapException extends Exception {

    /**
     * This constructor initialize the object with no specified message
     */
    public KeyAlreadyUsedHashMapException() {
        super();    //To change body of overridden methods use File | Settings | File Templates.
    }

    /**
     * This constructor initialize the object with the specified message
     *
     * @param message The detail message
     */
    public KeyAlreadyUsedHashMapException(String message) {
        super(message);    //To change body of overridden methods use File | Settings | File Templates.
    }

}
